//参数的默认值
function sum(a = 1,b = 2){
    return a+b
}

console.log(sum())
//rest参数
function sum(a = 1,b = 2,...values){
    console.log(values)
    return a+b
}

console.log(sum(1,2,3,4,4,5,5,6,6,77))

//箭头函数
let foo =(v)=>{
    console.log("123123")
}
let foo1=()=>v
// function full(person){
//     console.log(person.age)
// }
//如果是一行可以省略{}，多行尽量不要省略{}
let full = (person) => 5

full()
